package work.mediway.mdm.core.enums;

import java.util.HashMap;
import java.util.Map;

import lombok.Getter;
import lombok.Setter;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2020/12/29
 */

public enum DeptCategoryEnum {

    /**
     * W
     */
    DeptCategory_W("W", "Ward"),
    /**
     * E
     */
    DeptCategory_E("E", "Execute"),
    /**
     * DI
     */
    DeptCategory_DI("DI", "Drug Injection"),
    /**
     * D
     */
    DeptCategory_D("D", "Dispensing"),
    /**
     * C
     */
    DeptCategory_C("C", "Cashier"),
    /**
     * O
     */
    DeptCategory_O("O", "Other"),
    /**
     * OP
     */
    DeptCategory_OP("OP", "Operating Theatre"),
    /**
     * EM
     */
    DeptCategory_EM("EM", "Emergency"),
    /**
     * DS
     */
    DeptCategory_DS("DS", "Day Surgery"),
    /**
     * MR
     */
    DeptCategory_MR("MR", "Medical Records"),
    /**
     * MR
     */
    DeptCategory_OR("OR", "OutPatient Consulting Room"),
    /**
     * CL
     */
    DeptCategory_CL("CL", "Clinic"),
    /**
     * MR
     */
    DeptCategory_MADM("ADM", "Admission Point");

    public static Map<String, String> map = new HashMap<>();

    static {
        DeptCategoryEnum[] values = DeptCategoryEnum.values();
        if (values.length > 0) {
            for (DeptCategoryEnum categoryEnum : values) {
                map.put(categoryEnum.getCategoryCode(), categoryEnum.getCategoryDesc());
            }
        }
    }

    DeptCategoryEnum(String categoryCode, String categoryDesc) {
        this.categoryCode = categoryCode;
        this.categoryDesc = categoryDesc;
    }

    /**
     * 科室类型Code
     */
    @Setter
    @Getter
    private String categoryCode;

    /**
     * 科室类型Desc
     */
    @Setter
    @Getter
    private String categoryDesc;

}
